package assets
{
	import mx.collections.ArrayCollection;

	public class AssestsUtil
	{
		[Bindable] private static var categoryColl:ArrayCollection = new ArrayCollection( [
			{ nameImg: "wines.jpg", image: EmbeddedAssets.WINES },
			{ nameImg: "none.png", image: EmbeddedAssets.NONE }
		]);

		[Bindable] private static var categoryIcon:ArrayCollection = new ArrayCollection( [
			"wines.jpg","none.png"]);

		
		public static function getImage(name:String):Class
		{
			for (var i:int = 0; i < categoryColl.length; i++) 
			{
				var img:String = categoryColl[i].nameImg ;
				if(img== name){
					return categoryColl[i].image;
				}
			}
			return EmbeddedAssets.NONE;
		}
		public static function getAllImages():ArrayCollection
		{
							
			return categoryColl;
		}
		public static function getAllIcon():ArrayCollection
		{
			
			return categoryIcon;
		}
	}
}